.class Lcom/waiqin365/lightapp/kehu/view/ck;
.super Landroid/widget/BaseAdapter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    return-object v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/ck;->a(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    const/4 v4, 0x0

    if-nez p2, :cond_1

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/cl;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/cl;-><init>(Lcom/waiqin365/lightapp/kehu/view/ck;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->b(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Landroid/content/Context;

    move-result-object v0

    const v2, 0x7f030214

    const/4 v3, 0x0

    invoke-static {v0, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c007a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0ad3

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->b:Landroid/view/View;

    const v0, 0x7f0c0ad4

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->c:Landroid/widget/LinearLayout;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_2

    iget-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->c:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->c(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->c(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->b:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/ck;->a:Lcom/waiqin365/lightapp/kehu/view/SelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->d(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->a:Landroid/widget/TextView;

    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V

    :cond_0
    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/cl;

    move-object v1, v0

    goto :goto_0

    :cond_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    :cond_3
    iget-object v0, v1, Lcom/waiqin365/lightapp/kehu/view/cl;->b:Landroid/view/View;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2
.end method
